# -*- coding: utf-8 -*-
from google.appengine.ext import webapp
import os
from google.appengine.ext.webapp import template


class ProduitHandler(webapp.RequestHandler):
    def get(self, id):
        _get_context = {}
        _get_context['produit'] = id
        path = os.path.join(os.path.dirname(__file__), 'templates', 'produit.html')
        self.response.out.write(template.render(path, _get_context))
        return 
    
    
class ListProduitHandler(webapp.RequestHandler):
    def get(self):
        _get_context = {}
        path = os.path.join(os.path.dirname(__file__), 'templates', 'list_produit.html')
        self.response.out.write(template.render(path, _get_context))
        return 